home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / includes / hcmerrs.h < prev    next >
Text File  |  1996-11-18  |  4KB  |  111 lines

  1. /************************************************************************************
  2.  *    hcmerrs.h
  3.  *        This file contains error definitions for the HyperContentManager.
  4.  *    
  5.  *    Copyright:    ⌐ 1996 by Adobe Systems, Inc., all rights reserved.
  6.  *
  7.  * $Revision:   1.4  $
  8.  *
  9.  *
  10.  ************************************************************************************/
  11.  
  12.  
  13.  
  14. #if !defined( HCMERRS_H )
  15.     #define HCMERRS_H
  16.     
  17.  
  18.  
  19.     /************************************************************************************
  20.                                     Public definitions
  21.     ************************************************************************************/
  22.     //($defines)
  23.     #define kHcmBaseErrorRange  25000
  24.     #define kHcmGeneralRange  ( kHcmBaseErrorRange )
  25.     #define kHcmBaseMgrRange  ( kHcmBaseErrorRange + 100 )
  26.     #define kHcmBaseContentBossRange  ( kHcmBaseErrorRange + 200 )
  27.     #define kHcmBasePanelBossRange  ( kHcmBaseErrorRange + 300 )
  28.     #define kHcmBaseStorageBossRange  ( kHcmBaseErrorRange + 400 )
  29.     #define kHcmBaseListRange  ( kHcmBaseErrorRange + 500 )
  30.     #define kHcmBasePageMakerRange  ( kHcmBaseErrorRange + 600 )
  31.     
  32.  
  33.  
  34.     /************************************************************************************
  35.                                     Public errors
  36.     ************************************************************************************/
  37.     //($errors)
  38.     enum HcmErr 
  39.     {
  40.         kHcmSizeReserveErr =  0xFFFFFFFF, 
  41.             //
  42.             // generic errors
  43.             //
  44.         kHcmSUCCESS =  0,
  45.         kHcmFAILURE =  1,
  46.             //
  47.             // general errors
  48.             //
  49.         kHcmInputParamErr =  kHcmBaseErrorRange + 0,
  50.         kHcmNotImplementedYet = kHcmBaseErrorRange + 1, 
  51.         kHcmMemoryShortage = kHcmBaseErrorRange + 2, 
  52.         kHcmUserCancelledOperation = kHcmBaseErrorRange + 3, 
  53.             //
  54.             // manager errors
  55.             //
  56.         kHcmPubNotOpenErr =  kHcmBaseMgrRange + 0,
  57.         kHcmContextListEmpty = kHcmBaseMgrRange + 1, 
  58.         kHcmIncorrectContext = kHcmBaseMgrRange + 2, 
  59.             //
  60.             // content boss errors
  61.             //
  62.         kHcmContentTypeAlreadyRegistered =  kHcmBaseContentBossRange + 0,
  63.         kHcmContentTypeNotFound = kHcmBaseContentBossRange + 1, 
  64.             //
  65.             // panel boss errors
  66.             //
  67.         kHcmInvalidProcedure = kHcmBasePanelBossRange + 0,
  68.         kHcmUserCancelled = kHcmBasePanelBossRange + 1,
  69.             //
  70.             // storage boss errors
  71.             //
  72.         kHcmMainStorageDoesntExist = kHcmBaseStorageBossRange + 0,
  73.         kHcmMainStorageBad = kHcmBaseStorageBossRange + 1,
  74.         kHcmStorageNotOpen = kHcmBaseStorageBossRange + 2,
  75.         kHcmStreamNotOpen = kHcmBaseStorageBossRange + 3,
  76.         kHcmStreamWayTooBig = kHcmBaseStorageBossRange + 4,
  77.         kHcmBufferTooSmall = kHcmBaseStorageBossRange + 5,
  78.         kHcmMoreDataThanWillFit = kHcmBaseStorageBossRange + 6,
  79.         kHcmStreamEmpty = kHcmBaseStorageBossRange + 7,
  80.         kHcmAlreadyOpen = kHcmBaseStorageBossRange + 8,
  81.         kHcmAlreadyClosed = kHcmBaseStorageBossRange + 9,
  82.         kHcmRefCountNotZero = kHcmBaseStorageBossRange + 10,
  83.         kHcmReadWriteFailure = kHcmBaseStorageBossRange + 11,
  84.         kHcmNotEnoughDataLeft = kHcmBaseStorageBossRange + 12,
  85.             //
  86.             // list errors
  87.             //
  88.         kHcmNameExistsAlready = kHcmBaseListRange + 0, 
  89.         kHcmNameIsReadOnly = kHcmBaseListRange + 1, 
  90.         kHcmAssignmentIsReadOnly = kHcmBaseListRange + 2, 
  91.         kHcmInvalidObjectDescribed = kHcmBaseListRange + 3, 
  92.         kHcmPmRecAlreadyInList = kHcmBaseListRange + 4, 
  93.         kHcmPmRecIsInvalid = kHcmBaseListRange + 5, 
  94.         kHcmNoRelationshipList = kHcmBaseListRange + 6, 
  95.         kHcmElementAlreadyInList = kHcmBaseListRange + 7, 
  96.         kHcmNotFoundInList = kHcmBaseListRange + 8, 
  97.         kHcmEmptyNameString = kHcmBaseListRange + 9, 
  98.             //
  99.             // PageMaker-related errors
  100.             //
  101.         kHcmSegmentNotSelected = kHcmBasePageMakerRange + 0, 
  102.         kHcmUrlInvalid = kHcmBasePageMakerRange + 1, 
  103.         kHcmIndexTocNotAllowed = kHcmBasePageMakerRange + 2, 
  104.         kHcmPubPossiblyCorrupt = kHcmBasePageMakerRange + 3 
  105.     };
  106.     typedef enum HcmErr HcmErr;
  107.  
  108.  
  109.  
  110. #endif /* HCMERRS_H */
  111.